<template>
    <div>
        商品名：<input type="text" v-model="from.name">
        商品价格：<input type="text" v-model="from.price">
        <button @click="add">添加</button>
        <table>
            <tr>
                <td>请求地址</td>
                <td>http://localhost:5000/shoping</td>
            </tr>
        </table>
        

    </div>
</template>

<script>
    export default {
        name:'shop',
        data(){
            return{
                from:{}

            }
        },
        methods:{
            add(){
                this.axios.post('http://localhost:5000/',this.from).then(resp=>{

                })
            }
        }
        
    }
</script>

<style scoped>

</style>